package com.designoutput.manager.fontManagerClasses
{
	import flash.text.FontStyle;

	public class FontInfo
	{
		public var name:String;
		public var styles:Vector.<FontStyleInfo>;
		//public var loaded:Boolean = false;
		
		public static function parseFromXML(data:XML):FontInfo
		{
			var obj:FontInfo = new FontInfo();
			obj.name = new String(data.@name);
		
			obj.styles = new Vector.<FontStyleInfo>();
			for each (var xml:XML in data.style)
				obj.styles.push(FontStyleInfo.parseFromXML(xml));

			return obj;
		}
	}
}